

let new_song_box = document.querySelector(".new_song")
axios.get("http://localhost:3000/personalized/newsong")
    .then(function (data) {
        console.log("这个是axios请求到的数据", data.data.result);
        let new_song_list = data.data.result

        let str = ``
        for (let i = 0; i < new_song_list.length; i++) {
            str += `

            <li>
                <a href="html/play.html?id=${new_song_list[i].id}">
                    <p class="song_name">${new_song_list[i].name}</p>
                    <p class="song_info">
                        <span>${new_song_list[i].song.artists[0].name}</span>
                        <span>${new_song_list[i].song.album.name}</span>
                    </p>
                    <div class="play_btn"></div>
                </a>
            </li>
            `
        }
        new_song_box.innerHTML = str

    })
